/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.traderecord.mapper;

import com.jeeplus.core.persistence.BaseMapper;
import com.jeeplus.core.persistence.annotation.MyBatisMapper;
import com.jeeplus.modules.traderecord.entity.TradeRecord;

import java.util.List;

/**
 * 成交记录MAPPER接口
 * @author w
 * @version 2021-03-27
 */
@MyBatisMapper
public interface TradeRecordMapper extends BaseMapper<TradeRecord> {

    List<TradeRecord> findGoodsInfoByDays();

    List<TradeRecord> findYesterdayInfo(String id);

    List<TradeRecord> findSameDayList(TradeRecord tradeRecord);

    List<TradeRecord> findFiveDaysList(TradeRecord tradeRecord1);

    List<TradeRecord> findWeeksList(TradeRecord tradeRecord2);

    List<TradeRecord> findMonthsList(TradeRecord tradeRecord3);

    List<TradeRecord> findTodayInfo(TradeRecord tradeRecord);

    List<TradeRecord> findDaysPurchaseInfo(TradeRecord tradeRecord);

    List<TradeRecord> findDaysSaleInfo(TradeRecord tradeRecord);

    Double getTotalSum();

    Double getTodayStatic();

    List<TradeRecord> findLimitList(TradeRecord tradeRecord);

    List<TradeRecord> findYesterdayBeforeInfo(String id);

    List<TradeRecord> findFiveMinutesList(TradeRecord tradeRecord);

    List<TradeRecord> findTradesByDays(TradeRecord tradeRecord);

    List<TradeRecord> getDaysLeastAndEarly(TradeRecord trade);

    Double findAllTotal();

}